//
//  ViedoTableViewCell.m
//  Project----A
//
//  Created by dlios on 15-6-19.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ViedoTableViewCell.h"

@implementation ViedoTableViewCell
-(void)dealloc{

    [_myimageview release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self Videocell];
    }

    return self;
}
-(void)Videocell
{
    UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT-49-64)];
    view.backgroundColor = [UIColor blackColor];
    view.alpha = 0.1;
//    UIImageView *imageview = [[UIImageView alloc]initWithFrame:CGRectMake(300, 0, 30, 60)];
//    imageview.image = [UIImage imageNamed:@"biaoqian.png"];
//    [self addSubview:imageview];
//    self.myimageview = [[[UIImageView alloc]initWithFrame:[[UIScreen mainScreen]bounds]]autorelease];
    self.myimageview = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, HEIGHT-49-64)];
    self.myimageview.image = [UIImage imageNamed:@"www.jpg"];
    [self.contentView addSubview:self.myimageview];
    [self.myimageview addSubview:view];
    self.englishNamelable = [[UILabel alloc]initWithFrame:CGRectMake(10, 50, WIDTH - 20, 20)];
    self.englishNamelable.backgroundColor = [UIColor clearColor];
    self.englishNamelable.textColor = [UIColor whiteColor];
     [self.englishNamelable setFont:[UIFont fontWithName:@"Helvetica-Bold" size:19]];//字体加深

    [self.myimageview addSubview:self.englishNamelable];
    self.namelable = [[UILabel alloc]initWithFrame:CGRectMake(10, 25, 250, 20)];
    self.namelable.backgroundColor = [UIColor clearColor];
     [self.namelable setFont:[UIFont fontWithName:@"Helvetica-Bold" size:19]];
    self.namelable.textColor = [UIColor whiteColor];
    [self.myimageview addSubview:self.namelable];
    
    
    }
-(void)setMov:(Movie *)mov{//2

    if (_mov != mov) {
        [_mov release];
        _mov = [mov retain];
    }
    self.englishNamelable.text = mov.englishName;
    self.namelable.text = mov.name;
    
    NSURL *url =[NSURL URLWithString:mov.imagePathLandscape];
    [self.myimageview sd_setImageWithURL:url] ;
   

    }
- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
